//
//  GetUserTask.m
//  ZooNgonDoiOS
//
//  Created by Anh Jun Linh Tinh on 7/5/12.
//  Copyright (c) 2012 Personal. All rights reserved.
//

#import "GetUserTask.h"

@implementation GetUserTask

-(id)initWithUserId:(int)userId{
    self = [super init];
    if(self){
        _userId = userId;
    }
    return self;
}

-(void)doExecute{
    NSString* strUserId = [NSString stringWithFormat:@"%i", _userId];
    NSDictionary *params = [NSDictionary dictionaryWithObject:strUserId forKey:@"user_id"];
    [[RKObjectManager sharedManager].client get:@"/user/like" queryParameters:params delegate:self];
}

-(void)request:(RKRequest *)request didFailLoadWithError:(NSError *)error{
    
}

-(void)request:(RKRequest *)request didLoadResponse:(RKResponse *)response{
    
}
@end
